<template>
    <div>
        <el-button @click="backHome">返回首页</el-button>
        <el-button type="primary" @click="backPrev">返回上一页</el-button>
    </div>
</template>

<script>
    import "./error.less"
    export default {
        name: "backBtnGroup",
        data() {
            return {}
        },
        methods: {
            backHome() {
                this.$router.replace({
                    name: this.$config.homeRouterName
                })
            },
            backPrev() {
                this.$router.go(-1)
            }
        },
        mounted() {
        },
        beforeDestroy() {
        }
    }
</script>
